package com.wits.platform.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.databind.deser.Deserializers.Base;

import net.sf.json.JSONObject;

@Entity
@Table(name = "wits_sequence")
public class Sequence extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4113725997609198911L;

	public Sequence() {

	}

	private String sqId;

	private String sqTitle;

	private String sqPrefix;

	private String sqFormat;

	private Integer sqLength;

	@Id
	@Column(name = "sq_id", length = 36)
	public String getSqId() {
		return sqId;
	}

	public void setSqId(String sqId) {
		this.sqId = sqId;
	}

	@Column(name = "sq_title", length = 50)
	public String getSqTitle() {
		return sqTitle;
	}

	public void setSqTitle(String sqTitle) {
		this.sqTitle = sqTitle;
	}

	@Column(name = "sq_prefix", length = 5)
	public String getSqPrefix() {
		return sqPrefix;
	}

	public void setSqPrefix(String sqPrefix) {
		this.sqPrefix = sqPrefix;
	}

	@Column(name = "sq_format", length = 20)
	public String getSqFormat() {
		return sqFormat;
	}

	public void setSqFormat(String sqFormat) {
		this.sqFormat = sqFormat;
	}

	@Column(name = "sq_length")
	public Integer getSqLength() {
		return sqLength;
	}

	public void setSqLength(Integer sqLength) {
		this.sqLength = sqLength;
	}

	@Override
	public String toString() {
		return JSONObject.fromObject(this,BaseEntity.getBaseJsonConfig()).toString();
	}

	@Override
	public String display() {
		// TODO Auto-generated method stub
		return null;
	}

}
